#include"Stack.h"
#include"Queue.h"
void TestStack()
{
	ST st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
}
void TestQueue()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	printf("%d", QueueFront(&q));
	QueuePop(&q);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	while (!QueueEmpty(&q))
	{
		printf("%d", QueueFront(&q));
		QueuePop(&q);
	}
	
	QueueDestroy(&q);
}

void Homework()
{
	Queue q;
	QueueInit(&q);
	int a = 0;
	int b = 0;
	int c = 0;
	scanf_s("%d %d %d ", &a, &b, &c);
	QueuePush(&q, a);
	QueuePush(&q, b);
	QueuePush(&q, c);
	while (!QueueEmpty(&q))
	{
		printf("%d", QueueFront(&q));
		QueuePop(&q);
	}
}

 int main()
{
	
	 //TestQueue();
	 Homework();
	 return 0;
}